// ---------------------------------------------------------------------
//
// -- 分享复活币界面
// -- author £
//
// ---------------------------------------------------------------------

const CommonUtil = require('CommonUtil'),
    superClass = require('AlertWindow');

cc.Class({
    extends: superClass,

    properties: {
        numCur: require('BaseNum'),
        numTotal: require('BaseNum'),
        lbShareRCoin: cc.Label,
        btnShare: cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        let UIManager = require('UIManager');

        this.node.y = -UIManager.getRealH() * 0.5;
        CommonUtil.mysuper(superClass, this, 'onLoad');
    },

    updateRCoin: function (cur, total, shareGet) {
        this.numCur.updateNum(cur);
        this.numTotal.updateNum(total);
        this.lbShareRCoin.string = '获得复活币' + shareGet + '个';
    },

    start () {

    },

    // update (dt) {},
});
